import lazyLoadView from '@/router/lazy-load';
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

// <icon-archive />
const DataReport: AppRouteRecordRaw = {
  path: '/data-report',
  name: 'DataReport',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.dataReport',
    requiresAuth: true,
    icon: 'icon-bar-chart',
    order: 7,
    roleCode: 'GROUP_DATA_ADMIN',
  },
  children: [
    {
      path: 'mar',
      name: 'Mar',
      component: lazyLoadView(
        () => import('@/views/data-report/mar/index.vue')
      ),
      meta: {
        locale: 'menu.dataReport.mar',
        requiresAuth: false,
        pageName: '用药记录列表',
      },
    },
  ],
};

export default DataReport;
